<template>
	<view>
		<cu-custom bgColor="bg-blue" :isBack="true">
			<block slot="content">系统通知</block>
		</cu-custom>
		<!-- <view class="timelist">
			<view class="tiemword">{{timeToStr(msgnums.add_time,"MM-dd hh:mm")}}</view>
			<view class="tiemword">@</view>
		</view> -->
		<view class="noticelist"v-for="(item,index) in list" :key="index">
			<view class="noticeword">
				<view class="titles">系统通知</view>
				<view class="titless"></view>
			</view>
		</view>
	</view>
</template>

<script>
	const {appLogin,httpGet,httpPost,msg,timeToStr} = require("@/utils/common.js")
	export default {
		data() {
			return {
				timeToStr:timeToStr,
				list:[],
				type:['10'],
				page:1,
				page_size:20,
			}
		},
		onLoad() {
			appLogin((user_info) => {
				console.log(user_info)
				this.getnoticelist()
			})
		},
		methods: {
			getnoticelist(){
				httpGet({
					url:'/api/student/notice_list',
					data:{
						type:this.type,
						page:this.page,
						page_size:this.page_size
					}
				}).then((res)=>{
					console.log(res)
					this.list = res.result.list
				})
			}
		}
	}
</script>

<style>
	.noticelist{
		height: 185rpx;
		/* line-height: 185rpx; */
		background-color: #ffffff;
		margin: 0rpx 25rpx 0rpx 25rpx;
		border-radius: 10rpx;
		color: #222222;
		padding-left: 25rpx;
		padding-top: 45rpx;
		margin-top: 25rpx;
	}
	.titles{
		font-size: 30rpx;
		color: #0c0c0c;
		margin-bottom: 35rpx;
	}
	.titless{
		font-size: 30rpx;
		color: #959595;
	}

</style>
